import Vue from 'vue'
import App from './App'

import router from './router'//导入路由配置

import ElementUI from 'element-ui';//导入element-ui
import 'element-ui/lib/theme-chalk/index.css'
//导入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
//引入store
import store from './store/index.js'
Vue.config.productionTip = false
//安装路由，element
Vue.use(router)
Vue.use(ElementUI)
//安装axios
Vue.use(VueAxios,axios)
Vue.prototype.$axios = axios// 全局注册，之后可在其他组件中通过 this.$axios 发送数据


var vm = new Vue({
  el: '#app',
  router,//添加路由给vue实例对象，后续vue对象实例就有这个属性
  store,
  render: h => h(App),
})
